﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Hives.aspx.cs" Inherits="Site.Mobile.Hives" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
        <title>Portfolio Mobi Home Page - Free mobile website template which supports Iphone, Android, High End Touch</title>
        <link href="../css/mobile.css" rel="stylesheet" type="text/css" />
        <meta name="keywords" content="free mobile website templates, iphone ,android, high end touch" />
        <meta name="description" content="Design 6 is a free mobile template work in all most all mobile devices. you are free to use for both commercial and non-commercial purpose by attributing to http://mobifreaks.com" />
    </head>
<body>
    <form id="form1" runat=server>
	<header>
        <div class="logo">
            <a href="index.html">
            <h1>Manage Hives</h1>
            </a>
        </div>
        <div class="content" style="width:100%">
        
            <asp:GridView Width="100%" ID="GridView1" runat="server" 
                AutoGenerateColumns="False" BackColor="White" 
                BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                DataSourceID="SqlDataSource1" 
                onrowdeleting="GridView_RowDeleting" onrowcommand="GridView1_RowCommand">
                <Columns>
                    <asp:ButtonField ButtonType="Button" CommandName="Edit" Text="Edit">
                    <FooterStyle BackColor="#0D0D0D" />
                    <HeaderStyle BackColor="#0D0D0D" />
                    <ItemStyle BackColor="#0D0D0D" Width="20px" />
                    </asp:ButtonField>
                    <asp:BoundField DataField="Hive_ID" HeaderText="Hive ID" 
                        SortExpression="Hive_ID" >
                    <HeaderStyle BackColor="#333333" ForeColor="#CCCCCC" />
                    <ItemStyle BackColor="#232323" BorderColor="#333333" BorderStyle="Solid" 
                        BorderWidth="1px" ForeColor="#CCCCCC" HorizontalAlign="Center" 
                        VerticalAlign="Middle" />
                    </asp:BoundField>
                    <asp:BoundField DataField="WID" HeaderText="Worker" 
                        SortExpression="WID" >
                    <HeaderStyle BackColor="#333333" ForeColor="#CCCCCC" />
                    <ItemStyle BackColor="#1E1E1E" BorderColor="#333333" BorderStyle="Solid" 
                        BorderWidth="1px" ForeColor="#CCCCCC" HorizontalAlign="Center" 
                        VerticalAlign="Middle" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Healthy" HeaderText="Active" 
                        SortExpression="Healthy" >
                    <HeaderStyle BackColor="#333333" ForeColor="#CCCCCC" />
                    <ItemStyle BackColor="#232323" BorderColor="#333333" BorderStyle="Solid" 
                        BorderWidth="1px" ForeColor="#CCCCCC" HorizontalAlign="Center" />
                    </asp:BoundField>
                </Columns>
                <EmptyDataTemplate>
                    kmkm
                </EmptyDataTemplate>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                <SortedDescendingHeaderStyle BackColor="#002876" />
            </asp:GridView>
            <div>
                <asp:Button  ID="Button1" runat="server" Text="Register Hive" 
                    onclick="Button1_Click"></asp:Button>
                <asp:Button  ID="Button2" runat="server" Text="Delete Hive" 
                    onclick="Button1_Click"></asp:Button>
            </div>
        </div>

		<nav class="vertical menu">
            <ul>
                <li><a href="index.html">Manage Workers</a></li>
                <li><a href="single.html">Manage Hives</a></li>
                <li><a href="basic_markup.html">View Issues</a></li>
                <li><a href="contact.html">Production Stats</a></li>
            </ul>
        </nav> 
        <div class="clear"></div>
    </header>    
	<footer>
        <p class="copy">&copy; Nektar</p>
    </footer>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="Data Source=196.41.139.38;Initial Catalog=sqldbData;Persist Security Info=True;User ID=Default;Password=857105" 
        ProviderName="System.Data.SqlClient" 
        SelectCommand="SELECT [Healthy], [WID], [Hive_ID] FROM [Hives]"
        ></asp:SqlDataSource>
    </form>
</body>
</html>
